package com.dgw.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @program: spring-boot-web-jsp2
 * @description:
 * @author: Mr.Dai
 * @create: 2019-12-07 19:56
 **/
@RestController
public class FisrtController {

    @GetMapping("/sayhi")
    public ModelAndView sayHi(){
        ModelAndView andView = new ModelAndView();
        andView.setViewName("success");
        andView.addObject("msg","HELLO");
        return andView;
    }
}
